import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/page/HomeVue'
import Class from '@/page/ClassVue'
import Order from '@/page/OrderVue'
import My from '@/page/MyVue'
Vue.use(VueRouter)
const router = new VueRouter({
  linkActiveClass: 'active',
  linkExactActiveClass: 'exact',
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      component: Home,
    },
    {
      path: '/class',
      component: Class,
    },
    {
      path: '/order',
      component: Order,
    },
    {
      path: '/my',
      component: My,
    },
  ],
})
export default router
